package org.hxyjs.service;

import org.hxyjs.dto.DTO;

import org.hxyjs.entity.UserSchemeRecord;
import org.hxyjs.page.PageInfo;

public interface UserSchemeRecordService {
    /**
     * 查询全部
     * @return
     */
    public DTO<UserSchemeRecord> getAllUserSchemeRecords() throws Exception;
    /**
     * 根据主键查询
     * @return
     */
    public DTO<UserSchemeRecord> getUserSchemeRecordByUno(String usrno) throws Exception;
    /**
     *删除
     * @param usrno
     * @return
     */
    public DTO<UserSchemeRecord> deleteUserSchemeRecord(String usrno) throws Exception;
    /**
     *  修改
     * @param userSchemeRecord
     * @return
     */
    public DTO<UserSchemeRecord> updateUserSchemeRecord(UserSchemeRecord userSchemeRecord)  throws Exception;
    /**
     *  增加
     * @param userSchemeRecord
     * @return
     */
    public DTO<UserSchemeRecord> addUserSchemeRecordByUno(UserSchemeRecord userSchemeRecord)  throws Exception;

    public DTO<UserSchemeRecord> getUserSchemeRecordsByPage(PageInfo pageInfo) throws Exception;

    public DTO<UserSchemeRecord> getUserSchemeRecordsWithOrders(String  usrno)  throws Exception;

    public DTO<UserSchemeRecord> activate(String  usrno)  throws Exception;

    public DTO<UserSchemeRecord> lettory(String  usrno,String giftName)  throws Exception;




}
